import { Entity } from "../../../../../Core/Module/Entity/Entity";
import { IAwake } from "../../../../../Core/Module/EventSystem/IAwakeSystem";
import { IDestroy } from "../../../../../Core/Module/EventSystem/IDestroySystem";
import { ImplementsInterface } from "../../../../../Decorator/Decorator";
import { Dictionary } from "../../../../../Support/Share/Lib/Dictionary";
import { AOIEntity } from "./AOIEntity";

@ImplementsInterface(IAwake)
@ImplementsInterface(IDestroy)
export class Cell extends Entity implements IAwake, IDestroy {

    // 处在这个cell的单位
    public AOIUnits = new Dictionary<number, AOIEntity>();

    // 订阅了这个Cell的进入事件
    public SubsEnterEntities = new Dictionary<number, AOIEntity>();

    // 订阅了这个Cell的退出事件
    public SubsLeaveEntities = new Dictionary<number, AOIEntity>();

}